#ifndef __INVERTINDEXMAKER_H__
#define __INVERTINDEXMAKER_H__

#include "WebPage.h"
#include <unordered_map>

using std::unordered_map;

class InvertIndexMaker
{
public:
    InvertIndexMaker(vector<WebPage>&, unordered_map<string, unordered_map<int, double>>&);
    void createTable();

private:
    vector<WebPage>& _webPages; //网页库
    unordered_map<string, unordered_map<int, double>>& _invertIndexTable; // 倒排索引库
    vector<double> _totleWeightforOnePage; //每篇文章的词语权重总和
};


#endif